<?php
require_once 'init_app.php';

set_time_limit(0); 

do {
    $n = DB::delete('products')
                    ->where('shop_id', '=', 65535)
                    ->limit(100)
                    ->execute();
} while ($n);
 
echo "ok\n";